﻿using Magicodes.ExporterAndImporter.Core;

namespace Admin.NET.Application;

    /// <summary>
    /// 教师输出参数
    /// </summary>
    public class TeacherImportDto
    {
        /// <summary>
        /// 序号
        /// </summary>
        [ImporterHeader(Name = "序号")]
        [MaxLength(30, ErrorMessage = "序号字数超出最大限制,请修改!")]
        public string? Xuhao { get; set; }

        /// <summary>
        /// 校内编号
        /// </summary>
        [ImporterHeader(Name = "校内编号")]
        [MaxLength(30, ErrorMessage = "校内编号字数超出最大限制,请修改!")]
        public string? Code { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [ImporterHeader(Name = "姓名")]
        [MaxLength(30, ErrorMessage = "姓名字数超出最大限制,请修改!")]
        public string Name { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        [ImporterHeader(Name = "手机号码")]
        [MaxLength(30, ErrorMessage = "手机号码字数超出最大限制,请修改!")]
        public string? Tel { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [ImporterHeader(Name = "用户名")]
        [MaxLength(30, ErrorMessage = "用户名字数超出最大限制,请修改!")]
        public string UserName { get; set; }

        /// <summary>
        /// 导入检查消息
        /// </summary>
        public string? Msg { get; set; }
    }
